//
//  PayModel.h
//  CloudTest
//
//  Created by 张帅 on 2020/7/30.
//  Copyright © 2020 张帅. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface PayModel : NSObject

@property(nonatomic,strong)NSString * orderNo;
@property(nonatomic,strong)NSString * orderId;


#pragma mark 支付宝使用
@property(nonatomic,strong)NSString * orderData;///支付宝支付 使用加密字段
@property(nonatomic,strong)NSString * tradeNo;//订单号
@property(nonatomic,assign)BOOL pay_success;//默认NO
@property(nonatomic,strong)NSString * payStatus; //支付状态 1 已支付 2 未支付

@property(nonatomic,assign)BOOL is_pay;//默认NO
@property(nonatomic,strong)NSString * value; //1 未支付 2 已支付

#pragma mark 微信订单使用------Big
@property(nonatomic,strong)NSString *  appid;// = wxeb3de162dee4369a;
@property(nonatomic,strong)NSString *  noncestr;// = C3TtHRvxCEVUdSbWn3xO8dSHUlldjpTe;
//@property(nonatomic,strong)NSString * orderNo ;//= KJ20200526164051138584;
@property(nonatomic,strong)NSString *  packages ;//= "Sign=WXPay";
@property(nonatomic,strong)NSString *  partnerid;// = 1553500001;
@property(nonatomic,strong)NSString *  prepayid;// = "<null>";
@property(nonatomic,strong)NSString *  sign;// = 4C9A31783EC9F3A1CC6C8F3C8F7D17E4;
@property(nonatomic,strong)NSString *  timestamp ;//= 1590483240;


//支付成功或失败block
@property(nonatomic,strong)void(^pay_block)(NSString * state);

+ (instancetype)sharedInstance;


#pragma mark 模拟支付
+ (void)moni_paly_orderNo:(NSString *)orderNo success:(ObjSuccess)successBlock error:(ErrorBlock)errorBlock;

#pragma mark 验证支付是否完成
/// 验证支付是否完成
/// @param orderId 订单id
/// @param successBlock successBlock
/// @param errorBlock errorBlock
+ (void)validation_order_isPay_orderId:(NSString *)orderId success:(ObjSuccess)successBlock error:(ErrorBlock)errorBlock;
@end

NS_ASSUME_NONNULL_END
